/**@author mayh,createDate:2006-3-29
*/
package com.manager;
import java.sql.SQLException;

import sql.MemberOption;
import bo.Users;

import com.socket.*;
import lingtong.test.*;
public class Kefu_manager {
     public void kf_action(String username,String smstype) throws SQLException{
    	String grade="";
    	String hostname="";
    	TestRead test = new TestRead();
        hostname=test.getPara("db.property","manager_hostname");
        SendManagerAction send_msg=new SendManagerAction();
        MemberOption m = new MemberOption();
        Users users=new Users();
        users=m.select(username);
        grade=users.getGrade()+"";
       String accept=send_msg.sendData(username,hostname,smstype,grade);
     }
     public void kf_upgrade(String username,String grade) throws SQLException{
     	 String smstype="1";
    	 String hostname="";
     	 TestRead test = new TestRead();
         hostname=test.getPara("db.property","manager_hostname");
         SendManagerAction send_msg=new SendManagerAction();
//         String send_page=send_msg.PackageData(username,hostname,smstype,grade);
//         System.out.println(send_page);
         String accept=send_msg.sendData(username,hostname,smstype,grade);
      }
	public static void main(String[] args) {
		// TODO Auto-generated method stub
    
	}

}
